<?php

namespace app\admin\validate\music;

use think\Validate;

class MusicWelfareVal extends Validate
{
    protected $rule=array(
        "id"=>"require",
        "goods_id"=>"require",
        "type"=>"require",
        "price"=>"require",
        "status"=>"require",
        "buy_time_start"=>"require",
        "buy_time_end"=>"require",
    );
    protected $message=array(
        "id|require"=>"id为空",
        "goods_id|require"=>"请选择商品",
        "type|require"=>"请确认商品是否正确",
        "status|require"=>"请选择是否展示",
        "start_time|require"=>"请选择开始时间",
        "end_time|require"=>"请选择结束时间",
        "price|require"=>"请输入金额",
    );
    protected $scene=array(
        "create"=>array("goods_id","type","status","start_time","end_time","price"),
        "update"=>array("id","goods_id","type","status","start_time","end_time","price"),
    );
}